<template>
  <ul class="con">
    <li v-for="(item, index) in shop" :key="index">
      <img :src="item.img" alt="" />
      <h4>{{ item.title }}</h4>
      <p>价格是：{{ item.price }}</p>
    </li>
  </ul>
</template>

<script>
export default {
  props: ["shop"],
  data() {
    return {};
  },
  mounted() {},
  methods: {},
  components: {},
};
</script>

<style lang="scss">
.con {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  li {
    width: 45%;
    background: #ccc;
    border-radius: 10px;
    margin-top: 30px;
    img {
      width: 100%;
      height: auto;
    }
  }
}
</style>
